package cn.shiwei.pay.domain;

import cn.shiwei.basic.domain.BaseDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class PayBill extends BaseDomain{
    /**
     * 消费类型
     */
    public static final String CONSUMPTION_TYPE = "购买宠物";

    /**
     * 待支付
     */
    public static final Integer STATUS_PENDING_PAYMENT = 0;
    /**
     * 支付超时or退款
     */
    public static final Integer STATUS_TIMEOUT_OR_REFUND = 1;
    /**
     * 支付成功
     */
    public static final Integer STATUS_SUCCESS = 2;
    /**
     * 支付取消
     */
    public static final Integer STATUS_CANCELED = 3;

    /**
     * 支付单简介, *
     */
    private String digest;
    /**
     * 支付金额*
     */
    private BigDecimal money;
    /**
     * 支付状态*
     */
    private Integer state;
    /**
     * 支付结束时间*
     */
    private Date lastPayTime;
    /**
     * 支付类型*
     */
    private Long payChannel;
    /**
     * 支付单创建时间*
     */
    private Date createTime;
    /**
     * 支付单修改时间*
     */
    private Date updateTime;
    /**
     * 订单号sn*
     */
    private String unionPaySn;
    /**
     * 支付业务类型*
     */
    private String businessType;
    /**
     * 关联业务键*
     */
    private Long businessKey;
    /**
     * logininfo_id*
     */
    private Long logininfo_id;

    private String nickName;
    private String shopName;
    private Long shop_id;

}
